package com.yanqu.road.server.cmd.monopolymarket.fortress;

import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.monopolymarket.MonopolyMarketFortressMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

/**
 * @Description
 * @Author cwq
 * @Data 2021/10/15 16:32
 */
@Cmd(code = CrossProtocol.C_MONOPOLY_MARKET_FORTRESS_RANK_RECEIVE_COLLECT_REWARD, desc = "边边关要塞 领取采集奖励")
public class CrossMonopolyMarketFortressReceiveCollectRewardCmd extends CrossCommand {

    private long userId ;
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        userId = packet.getPlayerId();
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        MonopolyMarketFortressMgr.receiveCollectReward(userId);
    }

    @Override
    public void sendData() {

    }
}
